package com.hzhr.iot.user.convertor;

import com.hzhr.iot.user.convertor.custom.*;
import com.hzhr.iot.core.util.HzhrTypeUtil;
import com.hzhr.iot.core.util.HzhrJsonUtil;
import java.util.Map;
import com.hzhr.iot.user.model.user.UserModel;
import com.hzhr.iot.user.entity.UserEntity;
import com.hzhr.iot.user.entity.ext.UserEntityExt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.hzhr.iot.user.model.user.UserModel;
import com.hzhr.iot.user.model.user.UserGetModel;
import com.hzhr.iot.user.model.user_basicInfo.User_BasicInfoModel;
import com.hzhr.iot.user.model.user_basicInfo.User_BasicInfoGetModel;
import com.hzhr.iot.user.model.user_basicInfo.User_BasicInfoPutModel;
import com.hzhr.iot.user.model.user_deptId.User_DeptIdModel;
import com.hzhr.iot.user.model.user_deptId.User_DeptIdGetModel;
import com.hzhr.iot.user.model.user_deptId.User_DeptIdPutModel;
import com.hzhr.iot.user.model.user_info1.User_Info1Model;
import com.hzhr.iot.user.model.user_info1.User_Info1GetModel;
import com.hzhr.iot.user.model.user_moreCompleteRegistInfo.User_MoreCompleteRegistInfoModel;
import com.hzhr.iot.user.model.user_moreCompleteRegistInfo.User_MoreCompleteRegistInfoGetModel;
import com.hzhr.iot.user.model.user_moreCompleteRegistInfo.User_MoreCompleteRegistInfoPutModel;
import com.hzhr.iot.user.model.user_password.User_PasswordModel;
import com.hzhr.iot.user.model.user_password.User_PasswordGetModel;
import com.hzhr.iot.user.model.user_password.User_PasswordPutModel;
import com.hzhr.iot.user.model.user_registInfo.User_RegistInfoModel;
import com.hzhr.iot.user.model.user_registInfo.User_RegistInfoGetModel;
import com.hzhr.iot.user.model.user_registInfo.User_RegistInfoPostModel;
import com.hzhr.iot.user.model.user_sysInfo.User_SysInfoModel;
import com.hzhr.iot.user.model.user_sysInfo.User_SysInfoGetModel;
import com.hzhr.iot.user.model.user_sysInfo.User_SysInfoPutModel;
import com.hzhr.iot.user.model.user_type.User_TypeModel;
import com.hzhr.iot.user.model.user_type.User_TypeGetModel;
import com.hzhr.iot.user.model.user_type.User_TypePutModel;
import com.hzhr.iot.user.queryModel.custom.UserCustomQueryModel;

@Component
public class UserConvertor {
    @Autowired
    ActionCustomConvertor actionCustomConvertor;
    @Autowired
    ActionInRoleCustomConvertor actionInRoleCustomConvertor;
    @Autowired
    CompanyCustomConvertor companyCustomConvertor;
    @Autowired
    DeptCustomConvertor deptCustomConvertor;
    @Autowired
    OptionsCustomConvertor optionsCustomConvertor;
    @Autowired
    ResourceCustomConvertor resourceCustomConvertor;
    @Autowired
    ResourceInActionCustomConvertor resourceInActionCustomConvertor;
    @Autowired
    RoleCustomConvertor roleCustomConvertor;
    @Autowired
    UserInRoleCustomConvertor userInRoleCustomConvertor;

    public UserEntity userModel2entity(UserModel in) {
        //未转换字段: createUserId updateUserId isValid outId updateTime state 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setUserName(HzhrTypeUtil.string2string(in.getUserName()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setPhone(HzhrTypeUtil.long2long(in.getPhone()));
        result.setIdcard(HzhrTypeUtil.string2string(in.getIdcard()));
        result.setEmail(HzhrTypeUtil.string2string(in.getEmail()));
        result.setAddr(HzhrTypeUtil.string2string(in.getAddr()));
        result.setRemarks(HzhrTypeUtil.string2string(in.getRemarks()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        result.setUserCode(HzhrTypeUtil.string2string(in.getUserCode()));
        result.setLoginTime(HzhrTypeUtil.long2date(in.getLoginTime()));
        result.setLoginIp(HzhrTypeUtil.string2string(in.getLoginIp()));
        result.setType(HzhrTypeUtil.string2string(in.getType()));
        result.setIsNewUser(HzhrTypeUtil.string2string(in.getIsNewUser()));
        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        result.setCurrentToken(HzhrTypeUtil.string2string(in.getCurrentToken()));
        result.setCreateTime(HzhrTypeUtil.long2date(in.getCreateTime()));
        return result;
    }
    public UserEntity userModel2entity(UserModel in, UserEntity ori) {
        //未转换字段: createUserId updateUserId isValid outId updateTime state 
        if (in == null) return null;
        UserEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setUserName(HzhrTypeUtil.string2string(in.getUserName()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setPhone(HzhrTypeUtil.long2long(in.getPhone()));
        result.setIdcard(HzhrTypeUtil.string2string(in.getIdcard()));
        result.setEmail(HzhrTypeUtil.string2string(in.getEmail()));
        result.setAddr(HzhrTypeUtil.string2string(in.getAddr()));
        result.setRemarks(HzhrTypeUtil.string2string(in.getRemarks()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        result.setUserCode(HzhrTypeUtil.string2string(in.getUserCode()));
        result.setLoginTime(HzhrTypeUtil.long2date(in.getLoginTime()));
        result.setLoginIp(HzhrTypeUtil.string2string(in.getLoginIp()));
        result.setType(HzhrTypeUtil.string2string(in.getType()));
        result.setIsNewUser(HzhrTypeUtil.string2string(in.getIsNewUser()));
        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        result.setCurrentToken(HzhrTypeUtil.string2string(in.getCurrentToken()));
        result.setCreateTime(HzhrTypeUtil.long2date(in.getCreateTime()));
        return result;
    }
    public List<UserEntity> userModelList2entityList(List<UserModel> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (UserModel item : in) {
            result.add(userModel2entity(item));
        }
        return result;
    }
    public UserModel entity2userModel(UserEntity in) {
        //未转换字段: deptName managementName genderDes companyType subCompanyName companyName roles firstRoleName deptCode firstRoleId 
        if (in == null) return null;
        UserModel result = new UserModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setUserName(HzhrTypeUtil.string2string(in.getUserName()));
        result.setPhone(HzhrTypeUtil.long2long(in.getPhone()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setIdcard(HzhrTypeUtil.string2string(in.getIdcard()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setEmail(HzhrTypeUtil.string2string(in.getEmail()));
        result.setAddr(HzhrTypeUtil.string2string(in.getAddr()));
        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setCurrentToken(HzhrTypeUtil.string2string(in.getCurrentToken()));
        result.setRemarks(HzhrTypeUtil.string2string(in.getRemarks()));
        result.setLoginTime(HzhrTypeUtil.date2long(in.getLoginTime()));
        result.setLoginIp(HzhrTypeUtil.string2string(in.getLoginIp()));
        result.setIsNewUser(HzhrTypeUtil.string2string(in.getIsNewUser()));
        result.setUserCode(HzhrTypeUtil.string2string(in.getUserCode()));
        result.setCreateTime(HzhrTypeUtil.date2long(in.getCreateTime()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        result.setType(HzhrTypeUtil.string2string(in.getType()));
        return result;
    }
    public List<UserModel> entityList2userModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<UserModel> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2userModel(item));
        }
        return result;
    }
    public UserModel ext2userModel(UserEntityExt in) {
        //未转换字段: deptName managementName genderDes companyType subCompanyName companyName roles firstRoleName deptCode firstRoleId 
        if (in == null) return null;
        UserModel result = new UserModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setUserName(HzhrTypeUtil.string2string(in.getUserName()));
        result.setPhone(HzhrTypeUtil.long2long(in.getPhone()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setIdcard(HzhrTypeUtil.string2string(in.getIdcard()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setEmail(HzhrTypeUtil.string2string(in.getEmail()));
        result.setAddr(HzhrTypeUtil.string2string(in.getAddr()));
        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setCurrentToken(HzhrTypeUtil.string2string(in.getCurrentToken()));
        result.setRemarks(HzhrTypeUtil.string2string(in.getRemarks()));
        result.setLoginTime(HzhrTypeUtil.date2long(in.getLoginTime()));
        result.setLoginIp(HzhrTypeUtil.string2string(in.getLoginIp()));
        result.setIsNewUser(HzhrTypeUtil.string2string(in.getIsNewUser()));
        result.setUserCode(HzhrTypeUtil.string2string(in.getUserCode()));
        result.setCreateTime(HzhrTypeUtil.date2long(in.getCreateTime()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        result.setType(HzhrTypeUtil.string2string(in.getType()));
        return result;
    }
    public List<UserModel> extList2userModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<UserModel> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2userModel(item));
        }
        return result;
    }
    public UserGetModel extList2userGetModel(List<UserEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<UserModel> modelList = extList2userModelList(extList);
        if (modelList == null) {
            UserGetModel result = new UserGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));
         Boolean _show_role = query.get("_show_role") != null ? Boolean.parseBoolean(query.get("_show_role").toString()) : false;
         Boolean _show_info = query.get("_show_info") != null ? Boolean.parseBoolean(query.get("_show_info").toString()) : false;
         Boolean _show_company = query.get("_show_company") != null ? Boolean.parseBoolean(query.get("_show_company").toString()) : false;
         Boolean _show_dept = query.get("_show_dept") != null ? Boolean.parseBoolean(query.get("_show_dept").toString()) : false;

        if (!_show_role) {
            for (UserModel model : modelList) {
                model.setRoles(null);
                model.setFirstRoleId(null);
                model.setFirstRoleName(null);
            }
        }
        if (!_show_info) {
            for (UserModel model : modelList) {
                model.setUserName(null);
                model.setRealName(null);
                model.setGender(null);
                model.setGenderDes(null);
                model.setStaffNo(null);
                model.setPhone(null);
                model.setIdcard(null);
                model.setEmail(null);
                model.setAddr(null);
                model.setRemarks(null);
                model.setDeptId(null);
                model.setCompanyId(null);
                model.setResourceCode(null);
                model.setUserCode(null);
                model.setLoginTime(null);
                model.setLoginIp(null);
                model.setType(null);
                model.setIsNewUser(null);
                model.setPassword(null);
                model.setCurrentToken(null);
                model.setCreateTime(null);
            }
        }
        if (!_show_company) {
            for (UserModel model : modelList) {
                model.setCompanyName(null);
                model.setCompanyType(null);
            }
        }
        if (!_show_dept) {
            for (UserModel model : modelList) {
                model.setDeptName(null);
                model.setDeptCode(null);
                model.setSubCompanyName(null);
                model.setManagementName(null);
            }
        }

        UserGetModel result = new UserGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public UserGetModel entity2userGetModel(UserEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<UserEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2userGetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, UserEntityExt.class));
        return extList2userGetModel(extList, total, changeCount, query);
     }
    public UserEntity user_BasicInfoModel2entity(User_BasicInfoModel in) {
        //未转换字段: createUserId updateUserId isValid deptId updateTime userName isNewUser type userCode currentToken password companyId loginTime resourceCode phone createTime loginIp outId state email 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setIdcard(HzhrTypeUtil.string2string(in.getIdcard()));
        result.setAddr(HzhrTypeUtil.string2string(in.getAddr()));
        result.setRemarks(HzhrTypeUtil.string2string(in.getRemarks()));
        return result;
    }
    public UserEntity user_BasicInfoModel2entity(User_BasicInfoModel in, UserEntity ori) {
        //未转换字段: createUserId updateUserId isValid deptId updateTime userName isNewUser type userCode currentToken password companyId loginTime resourceCode phone createTime loginIp outId state email 
        if (in == null) return null;
        UserEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setIdcard(HzhrTypeUtil.string2string(in.getIdcard()));
        result.setAddr(HzhrTypeUtil.string2string(in.getAddr()));
        result.setRemarks(HzhrTypeUtil.string2string(in.getRemarks()));
        return result;
    }
    public List<UserEntity> user_BasicInfoModelList2entityList(List<User_BasicInfoModel> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (User_BasicInfoModel item : in) {
            result.add(user_BasicInfoModel2entity(item));
        }
        return result;
    }
    public User_BasicInfoModel entity2user_BasicInfoModel(UserEntity in) {
        //未转换字段: 
        if (in == null) return null;
        User_BasicInfoModel result = new User_BasicInfoModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setIdcard(HzhrTypeUtil.string2string(in.getIdcard()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setAddr(HzhrTypeUtil.string2string(in.getAddr()));
        result.setRemarks(HzhrTypeUtil.string2string(in.getRemarks()));
        return result;
    }
    public List<User_BasicInfoModel> entityList2user_BasicInfoModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<User_BasicInfoModel> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2user_BasicInfoModel(item));
        }
        return result;
    }
    public User_BasicInfoModel ext2user_BasicInfoModel(UserEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        User_BasicInfoModel result = new User_BasicInfoModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setIdcard(HzhrTypeUtil.string2string(in.getIdcard()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setAddr(HzhrTypeUtil.string2string(in.getAddr()));
        result.setRemarks(HzhrTypeUtil.string2string(in.getRemarks()));
        return result;
    }
    public List<User_BasicInfoModel> extList2user_BasicInfoModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<User_BasicInfoModel> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2user_BasicInfoModel(item));
        }
        return result;
    }
    public User_BasicInfoGetModel extList2user_BasicInfoGetModel(List<UserEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<User_BasicInfoModel> modelList = extList2user_BasicInfoModelList(extList);
        if (modelList == null) {
            User_BasicInfoGetModel result = new User_BasicInfoGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));
         Boolean _show_info = query.get("_show_info") != null ? Boolean.parseBoolean(query.get("_show_info").toString()) : false;

        if (!_show_info) {
            for (User_BasicInfoModel model : modelList) {
                model.setRealName(null);
                model.setGender(null);
                model.setStaffNo(null);
                model.setIdcard(null);
                model.setAddr(null);
                model.setRemarks(null);
            }
        }

        User_BasicInfoGetModel result = new User_BasicInfoGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public User_BasicInfoGetModel entity2user_BasicInfoGetModel(UserEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<UserEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2user_BasicInfoGetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, UserEntityExt.class));
        return extList2user_BasicInfoGetModel(extList, total, changeCount, query);
     }
    public UserEntity user_BasicInfoPutModel2entity(User_BasicInfoPutModel in) {
        //未转换字段: createUserId updateUserId isValid deptId updateTime userName isNewUser type userCode currentToken password companyId loginTime resourceCode phone createTime loginIp outId id state email 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setIdcard(HzhrTypeUtil.string2string(in.getIdcard()));
        result.setAddr(HzhrTypeUtil.string2string(in.getAddr()));
        result.setRemarks(HzhrTypeUtil.string2string(in.getRemarks()));
        return result;
    }
    public UserEntity user_BasicInfoPutModel2entity(User_BasicInfoPutModel in, UserEntity ori) {
        //未转换字段: createUserId updateUserId isValid deptId updateTime userName isNewUser type userCode currentToken password companyId loginTime resourceCode phone createTime loginIp outId id state email 
        if (in == null) return null;
        UserEntity result = ori;

        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setIdcard(HzhrTypeUtil.string2string(in.getIdcard()));
        result.setAddr(HzhrTypeUtil.string2string(in.getAddr()));
        result.setRemarks(HzhrTypeUtil.string2string(in.getRemarks()));
        return result;
    }
    public List<UserEntity> user_BasicInfoPutModelList2entityList(List<User_BasicInfoPutModel> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (User_BasicInfoPutModel item : in) {
            result.add(user_BasicInfoPutModel2entity(item));
        }
        return result;
    }
    public User_BasicInfoPutModel entity2user_BasicInfoPutModel(UserEntity in) {
        //未转换字段: 
        if (in == null) return null;
        User_BasicInfoPutModel result = new User_BasicInfoPutModel();

        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setIdcard(HzhrTypeUtil.string2string(in.getIdcard()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setAddr(HzhrTypeUtil.string2string(in.getAddr()));
        result.setRemarks(HzhrTypeUtil.string2string(in.getRemarks()));
        return result;
    }
    public List<User_BasicInfoPutModel> entityList2user_BasicInfoPutModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<User_BasicInfoPutModel> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2user_BasicInfoPutModel(item));
        }
        return result;
    }
    public User_BasicInfoPutModel ext2user_BasicInfoPutModel(UserEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        User_BasicInfoPutModel result = new User_BasicInfoPutModel();

        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setIdcard(HzhrTypeUtil.string2string(in.getIdcard()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setAddr(HzhrTypeUtil.string2string(in.getAddr()));
        result.setRemarks(HzhrTypeUtil.string2string(in.getRemarks()));
        return result;
    }
    public List<User_BasicInfoPutModel> extList2user_BasicInfoPutModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<User_BasicInfoPutModel> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2user_BasicInfoPutModel(item));
        }
        return result;
    }
    public UserEntity user_DeptIdModel2entity(User_DeptIdModel in) {
        //未转换字段: createUserId gender type userCode password loginTime resourceCode loginIp outId state addr email staffNo updateUserId isValid updateTime userName isNewUser currentToken realName companyId phone createTime idcard remarks 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        return result;
    }
    public UserEntity user_DeptIdModel2entity(User_DeptIdModel in, UserEntity ori) {
        //未转换字段: createUserId gender type userCode password loginTime resourceCode loginIp outId state addr email staffNo updateUserId isValid updateTime userName isNewUser currentToken realName companyId phone createTime idcard remarks 
        if (in == null) return null;
        UserEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        return result;
    }
    public List<UserEntity> user_DeptIdModelList2entityList(List<User_DeptIdModel> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (User_DeptIdModel item : in) {
            result.add(user_DeptIdModel2entity(item));
        }
        return result;
    }
    public User_DeptIdModel entity2user_DeptIdModel(UserEntity in) {
        //未转换字段: 
        if (in == null) return null;
        User_DeptIdModel result = new User_DeptIdModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        return result;
    }
    public List<User_DeptIdModel> entityList2user_DeptIdModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<User_DeptIdModel> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2user_DeptIdModel(item));
        }
        return result;
    }
    public User_DeptIdModel ext2user_DeptIdModel(UserEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        User_DeptIdModel result = new User_DeptIdModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        return result;
    }
    public List<User_DeptIdModel> extList2user_DeptIdModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<User_DeptIdModel> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2user_DeptIdModel(item));
        }
        return result;
    }
    public User_DeptIdGetModel extList2user_DeptIdGetModel(List<UserEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<User_DeptIdModel> modelList = extList2user_DeptIdModelList(extList);
        if (modelList == null) {
            User_DeptIdGetModel result = new User_DeptIdGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));


        User_DeptIdGetModel result = new User_DeptIdGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public User_DeptIdGetModel entity2user_DeptIdGetModel(UserEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<UserEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2user_DeptIdGetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, UserEntityExt.class));
        return extList2user_DeptIdGetModel(extList, total, changeCount, query);
     }
    public UserEntity user_DeptIdPutModel2entity(User_DeptIdPutModel in) {
        //未转换字段: createUserId gender type userCode password loginTime resourceCode loginIp outId id state addr email staffNo updateUserId isValid updateTime userName isNewUser currentToken realName companyId phone createTime idcard remarks 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        return result;
    }
    public UserEntity user_DeptIdPutModel2entity(User_DeptIdPutModel in, UserEntity ori) {
        //未转换字段: createUserId gender type userCode password loginTime resourceCode loginIp outId id state addr email staffNo updateUserId isValid updateTime userName isNewUser currentToken realName companyId phone createTime idcard remarks 
        if (in == null) return null;
        UserEntity result = ori;

        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        return result;
    }
    public List<UserEntity> user_DeptIdPutModelList2entityList(List<User_DeptIdPutModel> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (User_DeptIdPutModel item : in) {
            result.add(user_DeptIdPutModel2entity(item));
        }
        return result;
    }
    public User_DeptIdPutModel entity2user_DeptIdPutModel(UserEntity in) {
        //未转换字段: 
        if (in == null) return null;
        User_DeptIdPutModel result = new User_DeptIdPutModel();

        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        return result;
    }
    public List<User_DeptIdPutModel> entityList2user_DeptIdPutModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<User_DeptIdPutModel> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2user_DeptIdPutModel(item));
        }
        return result;
    }
    public User_DeptIdPutModel ext2user_DeptIdPutModel(UserEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        User_DeptIdPutModel result = new User_DeptIdPutModel();

        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        return result;
    }
    public List<User_DeptIdPutModel> extList2user_DeptIdPutModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<User_DeptIdPutModel> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2user_DeptIdPutModel(item));
        }
        return result;
    }
    public UserEntity user_Info1Model2entity(User_Info1Model in) {
        //未转换字段: createUserId gender staffNo updateUserId isValid deptId updateTime isNewUser type userCode currentToken realName password companyId loginTime createTime idcard loginIp outId id state addr email remarks 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setUserName(HzhrTypeUtil.string2string(in.getUserName()));
        result.setPhone(HzhrTypeUtil.long2long(in.getPhone()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        return result;
    }
    public UserEntity user_Info1Model2entity(User_Info1Model in, UserEntity ori) {
        //未转换字段: createUserId gender staffNo updateUserId isValid deptId updateTime isNewUser type userCode currentToken realName password companyId loginTime createTime idcard loginIp outId id state addr email remarks 
        if (in == null) return null;
        UserEntity result = ori;

        result.setUserName(HzhrTypeUtil.string2string(in.getUserName()));
        result.setPhone(HzhrTypeUtil.long2long(in.getPhone()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        return result;
    }
    public List<UserEntity> user_Info1ModelList2entityList(List<User_Info1Model> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (User_Info1Model item : in) {
            result.add(user_Info1Model2entity(item));
        }
        return result;
    }
    public User_Info1Model entity2user_Info1Model(UserEntity in) {
        //未转换字段: 
        if (in == null) return null;
        User_Info1Model result = new User_Info1Model();

        result.setUserName(HzhrTypeUtil.string2string(in.getUserName()));
        result.setPhone(HzhrTypeUtil.long2long(in.getPhone()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        return result;
    }
    public List<User_Info1Model> entityList2user_Info1ModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<User_Info1Model> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2user_Info1Model(item));
        }
        return result;
    }
    public User_Info1Model ext2user_Info1Model(UserEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        User_Info1Model result = new User_Info1Model();

        result.setUserName(HzhrTypeUtil.string2string(in.getUserName()));
        result.setPhone(HzhrTypeUtil.long2long(in.getPhone()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        return result;
    }
    public List<User_Info1Model> extList2user_Info1ModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<User_Info1Model> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2user_Info1Model(item));
        }
        return result;
    }
    public User_Info1GetModel extList2user_Info1GetModel(List<UserEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<User_Info1Model> modelList = extList2user_Info1ModelList(extList);
        if (modelList == null) {
            User_Info1GetModel result = new User_Info1GetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));


        User_Info1GetModel result = new User_Info1GetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public User_Info1GetModel entity2user_Info1GetModel(UserEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<UserEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2user_Info1GetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, UserEntityExt.class));
        return extList2user_Info1GetModel(extList, total, changeCount, query);
     }
    public UserEntity user_MoreCompleteRegistInfoModel2entity(User_MoreCompleteRegistInfoModel in) {
        //未转换字段: createUserId gender staffNo updateUserId isValid deptId updateTime userName isNewUser type userCode password loginTime resourceCode phone createTime idcard loginIp outId state addr email remarks 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCurrentToken(HzhrTypeUtil.string2string(in.getToken()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        return result;
    }
    public UserEntity user_MoreCompleteRegistInfoModel2entity(User_MoreCompleteRegistInfoModel in, UserEntity ori) {
        //未转换字段: createUserId gender staffNo updateUserId isValid deptId updateTime userName isNewUser type userCode password loginTime resourceCode phone createTime idcard loginIp outId state addr email remarks 
        if (in == null) return null;
        UserEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCurrentToken(HzhrTypeUtil.string2string(in.getToken()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        return result;
    }
    public List<UserEntity> user_MoreCompleteRegistInfoModelList2entityList(List<User_MoreCompleteRegistInfoModel> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (User_MoreCompleteRegistInfoModel item : in) {
            result.add(user_MoreCompleteRegistInfoModel2entity(item));
        }
        return result;
    }
    public User_MoreCompleteRegistInfoModel entity2user_MoreCompleteRegistInfoModel(UserEntity in) {
        //未转换字段: rsToken 
        if (in == null) return null;
        User_MoreCompleteRegistInfoModel result = new User_MoreCompleteRegistInfoModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setToken(HzhrTypeUtil.string2string(in.getCurrentToken()));
        return result;
    }
    public List<User_MoreCompleteRegistInfoModel> entityList2user_MoreCompleteRegistInfoModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<User_MoreCompleteRegistInfoModel> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2user_MoreCompleteRegistInfoModel(item));
        }
        return result;
    }
    public User_MoreCompleteRegistInfoModel ext2user_MoreCompleteRegistInfoModel(UserEntityExt in) {
        //未转换字段: rsToken 
        if (in == null) return null;
        User_MoreCompleteRegistInfoModel result = new User_MoreCompleteRegistInfoModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setToken(HzhrTypeUtil.string2string(in.getCurrentToken()));
        return result;
    }
    public List<User_MoreCompleteRegistInfoModel> extList2user_MoreCompleteRegistInfoModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<User_MoreCompleteRegistInfoModel> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2user_MoreCompleteRegistInfoModel(item));
        }
        return result;
    }
    public User_MoreCompleteRegistInfoGetModel extList2user_MoreCompleteRegistInfoGetModel(List<UserEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<User_MoreCompleteRegistInfoModel> modelList = extList2user_MoreCompleteRegistInfoModelList(extList);
        if (modelList == null) {
            User_MoreCompleteRegistInfoGetModel result = new User_MoreCompleteRegistInfoGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));
         Boolean _show_info = query.get("_show_info") != null ? Boolean.parseBoolean(query.get("_show_info").toString()) : false;

        if (!_show_info) {
            for (User_MoreCompleteRegistInfoModel model : modelList) {
                model.setToken(null);
                model.setRsToken(null);
                model.setRealName(null);
                model.setCompanyId(null);
            }
        }

        User_MoreCompleteRegistInfoGetModel result = new User_MoreCompleteRegistInfoGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public User_MoreCompleteRegistInfoGetModel entity2user_MoreCompleteRegistInfoGetModel(UserEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<UserEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2user_MoreCompleteRegistInfoGetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, UserEntityExt.class));
        return extList2user_MoreCompleteRegistInfoGetModel(extList, total, changeCount, query);
     }
    public UserEntity user_MoreCompleteRegistInfoPutModel2entity(User_MoreCompleteRegistInfoPutModel in) {
        //未转换字段: createUserId gender type userCode password loginTime resourceCode loginIp outId id state addr email staffNo updateUserId isValid deptId updateTime userName isNewUser currentToken phone createTime idcard remarks 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        return result;
    }
    public UserEntity user_MoreCompleteRegistInfoPutModel2entity(User_MoreCompleteRegistInfoPutModel in, UserEntity ori) {
        //未转换字段: createUserId gender type userCode password loginTime resourceCode loginIp outId id state addr email staffNo updateUserId isValid deptId updateTime userName isNewUser currentToken phone createTime idcard remarks 
        if (in == null) return null;
        UserEntity result = ori;

        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        return result;
    }
    public List<UserEntity> user_MoreCompleteRegistInfoPutModelList2entityList(List<User_MoreCompleteRegistInfoPutModel> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (User_MoreCompleteRegistInfoPutModel item : in) {
            result.add(user_MoreCompleteRegistInfoPutModel2entity(item));
        }
        return result;
    }
    public User_MoreCompleteRegistInfoPutModel entity2user_MoreCompleteRegistInfoPutModel(UserEntity in) {
        //未转换字段: 
        if (in == null) return null;
        User_MoreCompleteRegistInfoPutModel result = new User_MoreCompleteRegistInfoPutModel();

        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        return result;
    }
    public List<User_MoreCompleteRegistInfoPutModel> entityList2user_MoreCompleteRegistInfoPutModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<User_MoreCompleteRegistInfoPutModel> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2user_MoreCompleteRegistInfoPutModel(item));
        }
        return result;
    }
    public User_MoreCompleteRegistInfoPutModel ext2user_MoreCompleteRegistInfoPutModel(UserEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        User_MoreCompleteRegistInfoPutModel result = new User_MoreCompleteRegistInfoPutModel();

        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        return result;
    }
    public List<User_MoreCompleteRegistInfoPutModel> extList2user_MoreCompleteRegistInfoPutModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<User_MoreCompleteRegistInfoPutModel> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2user_MoreCompleteRegistInfoPutModel(item));
        }
        return result;
    }
    public UserEntity user_PasswordModel2entity(User_PasswordModel in) {
        //未转换字段: createUserId gender type userCode loginTime resourceCode loginIp outId state addr email staffNo updateUserId isValid deptId updateTime userName isNewUser currentToken realName companyId phone createTime idcard remarks 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        return result;
    }
    public UserEntity user_PasswordModel2entity(User_PasswordModel in, UserEntity ori) {
        //未转换字段: createUserId gender type userCode loginTime resourceCode loginIp outId state addr email staffNo updateUserId isValid deptId updateTime userName isNewUser currentToken realName companyId phone createTime idcard remarks 
        if (in == null) return null;
        UserEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        return result;
    }
    public List<UserEntity> user_PasswordModelList2entityList(List<User_PasswordModel> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (User_PasswordModel item : in) {
            result.add(user_PasswordModel2entity(item));
        }
        return result;
    }
    public User_PasswordModel entity2user_PasswordModel(UserEntity in) {
        //未转换字段: 
        if (in == null) return null;
        User_PasswordModel result = new User_PasswordModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        return result;
    }
    public List<User_PasswordModel> entityList2user_PasswordModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<User_PasswordModel> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2user_PasswordModel(item));
        }
        return result;
    }
    public User_PasswordModel ext2user_PasswordModel(UserEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        User_PasswordModel result = new User_PasswordModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        return result;
    }
    public List<User_PasswordModel> extList2user_PasswordModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<User_PasswordModel> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2user_PasswordModel(item));
        }
        return result;
    }
    public User_PasswordGetModel extList2user_PasswordGetModel(List<UserEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<User_PasswordModel> modelList = extList2user_PasswordModelList(extList);
        if (modelList == null) {
            User_PasswordGetModel result = new User_PasswordGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));


        User_PasswordGetModel result = new User_PasswordGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public User_PasswordGetModel entity2user_PasswordGetModel(UserEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<UserEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2user_PasswordGetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, UserEntityExt.class));
        return extList2user_PasswordGetModel(extList, total, changeCount, query);
     }
    public UserEntity user_PasswordPutModel2entity(User_PasswordPutModel in) {
        //未转换字段: createUserId gender type userCode loginTime resourceCode loginIp outId id state addr email staffNo updateUserId isValid deptId updateTime userName isNewUser currentToken realName companyId phone createTime idcard remarks 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        return result;
    }
    public UserEntity user_PasswordPutModel2entity(User_PasswordPutModel in, UserEntity ori) {
        //未转换字段: createUserId gender type userCode loginTime resourceCode loginIp outId id state addr email staffNo updateUserId isValid deptId updateTime userName isNewUser currentToken realName companyId phone createTime idcard remarks 
        if (in == null) return null;
        UserEntity result = ori;

        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        return result;
    }
    public List<UserEntity> user_PasswordPutModelList2entityList(List<User_PasswordPutModel> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (User_PasswordPutModel item : in) {
            result.add(user_PasswordPutModel2entity(item));
        }
        return result;
    }
    public User_PasswordPutModel entity2user_PasswordPutModel(UserEntity in) {
        //未转换字段: 
        if (in == null) return null;
        User_PasswordPutModel result = new User_PasswordPutModel();

        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        return result;
    }
    public List<User_PasswordPutModel> entityList2user_PasswordPutModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<User_PasswordPutModel> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2user_PasswordPutModel(item));
        }
        return result;
    }
    public User_PasswordPutModel ext2user_PasswordPutModel(UserEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        User_PasswordPutModel result = new User_PasswordPutModel();

        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        return result;
    }
    public List<User_PasswordPutModel> extList2user_PasswordPutModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<User_PasswordPutModel> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2user_PasswordPutModel(item));
        }
        return result;
    }
    public UserEntity user_RegistInfoModel2entity(User_RegistInfoModel in) {
        //未转换字段: createUserId gender staffNo updateUserId isValid deptId updateTime isNewUser type userCode realName password companyId loginTime resourceCode phone createTime idcard loginIp outId state addr remarks 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCurrentToken(HzhrTypeUtil.string2string(in.getToken()));
        result.setUserName(HzhrTypeUtil.object2string(in.getPhone()));
        result.setEmail(HzhrTypeUtil.string2string(in.getEmail()));
        return result;
    }
    public UserEntity user_RegistInfoModel2entity(User_RegistInfoModel in, UserEntity ori) {
        //未转换字段: createUserId gender staffNo updateUserId isValid deptId updateTime isNewUser type userCode realName password companyId loginTime resourceCode phone createTime idcard loginIp outId state addr remarks 
        if (in == null) return null;
        UserEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCurrentToken(HzhrTypeUtil.string2string(in.getToken()));
        result.setUserName(HzhrTypeUtil.object2string(in.getPhone()));
        result.setEmail(HzhrTypeUtil.string2string(in.getEmail()));
        return result;
    }
    public List<UserEntity> user_RegistInfoModelList2entityList(List<User_RegistInfoModel> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (User_RegistInfoModel item : in) {
            result.add(user_RegistInfoModel2entity(item));
        }
        return result;
    }
    public User_RegistInfoModel entity2user_RegistInfoModel(UserEntity in) {
        //未转换字段: rsToken 
        if (in == null) return null;
        User_RegistInfoModel result = new User_RegistInfoModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setPhone(HzhrTypeUtil.string2long(in.getUserName()));
        result.setEmail(HzhrTypeUtil.string2string(in.getEmail()));
        result.setToken(HzhrTypeUtil.string2string(in.getCurrentToken()));
        return result;
    }
    public List<User_RegistInfoModel> entityList2user_RegistInfoModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<User_RegistInfoModel> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2user_RegistInfoModel(item));
        }
        return result;
    }
    public User_RegistInfoModel ext2user_RegistInfoModel(UserEntityExt in) {
        //未转换字段: rsToken 
        if (in == null) return null;
        User_RegistInfoModel result = new User_RegistInfoModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setPhone(HzhrTypeUtil.string2long(in.getUserName()));
        result.setEmail(HzhrTypeUtil.string2string(in.getEmail()));
        result.setToken(HzhrTypeUtil.string2string(in.getCurrentToken()));
        return result;
    }
    public List<User_RegistInfoModel> extList2user_RegistInfoModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<User_RegistInfoModel> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2user_RegistInfoModel(item));
        }
        return result;
    }
    public User_RegistInfoGetModel extList2user_RegistInfoGetModel(List<UserEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<User_RegistInfoModel> modelList = extList2user_RegistInfoModelList(extList);
        if (modelList == null) {
            User_RegistInfoGetModel result = new User_RegistInfoGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));
         Boolean _show_info = query.get("_show_info") != null ? Boolean.parseBoolean(query.get("_show_info").toString()) : false;

        if (!_show_info) {
            for (User_RegistInfoModel model : modelList) {
                model.setToken(null);
                model.setPhone(null);
                model.setEmail(null);
            }
        }

        User_RegistInfoGetModel result = new User_RegistInfoGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public User_RegistInfoGetModel entity2user_RegistInfoGetModel(UserEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<UserEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2user_RegistInfoGetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, UserEntityExt.class));
        return extList2user_RegistInfoGetModel(extList, total, changeCount, query);
     }
    public UserEntity user_RegistInfoPostModel2entity(User_RegistInfoPostModel in) {
        //未转换字段: createUserId gender staffNo updateUserId isValid deptId updateTime isNewUser type userCode currentToken realName companyId loginTime resourceCode phone createTime idcard loginIp outId id state addr remarks 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setUserName(HzhrTypeUtil.object2string(in.getPhone()));
        result.setEmail(HzhrTypeUtil.string2string(in.getEmail()));
        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        return result;
    }
    public UserEntity user_RegistInfoPostModel2entity(User_RegistInfoPostModel in, UserEntity ori) {
        //未转换字段: createUserId gender staffNo updateUserId isValid deptId updateTime isNewUser type userCode currentToken realName companyId loginTime resourceCode phone createTime idcard loginIp outId id state addr remarks 
        if (in == null) return null;
        UserEntity result = ori;

        result.setUserName(HzhrTypeUtil.object2string(in.getPhone()));
        result.setEmail(HzhrTypeUtil.string2string(in.getEmail()));
        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        return result;
    }
    public List<UserEntity> user_RegistInfoPostModelList2entityList(List<User_RegistInfoPostModel> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (User_RegistInfoPostModel item : in) {
            result.add(user_RegistInfoPostModel2entity(item));
        }
        return result;
    }
    public User_RegistInfoPostModel entity2user_RegistInfoPostModel(UserEntity in) {
        //未转换字段: 
        if (in == null) return null;
        User_RegistInfoPostModel result = new User_RegistInfoPostModel();

        result.setPhone(HzhrTypeUtil.string2long(in.getUserName()));
        result.setEmail(HzhrTypeUtil.string2string(in.getEmail()));
        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        return result;
    }
    public List<User_RegistInfoPostModel> entityList2user_RegistInfoPostModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<User_RegistInfoPostModel> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2user_RegistInfoPostModel(item));
        }
        return result;
    }
    public User_RegistInfoPostModel ext2user_RegistInfoPostModel(UserEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        User_RegistInfoPostModel result = new User_RegistInfoPostModel();

        result.setPhone(HzhrTypeUtil.string2long(in.getUserName()));
        result.setEmail(HzhrTypeUtil.string2string(in.getEmail()));
        result.setPassword(HzhrTypeUtil.string2string(in.getPassword()));
        return result;
    }
    public List<User_RegistInfoPostModel> extList2user_RegistInfoPostModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<User_RegistInfoPostModel> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2user_RegistInfoPostModel(item));
        }
        return result;
    }
    public UserEntity user_SysInfoModel2entity(User_SysInfoModel in) {
        //未转换字段: createUserId gender updateUserId isValid updateTime isNewUser type userCode currentToken password companyId loginTime resourceCode idcard loginIp outId state addr email remarks 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setUserName(HzhrTypeUtil.string2string(in.getUserName()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setPhone(HzhrTypeUtil.string2long(in.getPhone()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setId(HzhrTypeUtil.string2integer(in.getGender()));
        result.setCreateTime(HzhrTypeUtil.long2date(in.getCreateTime()));
        return result;
    }
    public UserEntity user_SysInfoModel2entity(User_SysInfoModel in, UserEntity ori) {
        //未转换字段: createUserId gender updateUserId isValid updateTime isNewUser type userCode currentToken password companyId loginTime resourceCode idcard loginIp outId state addr email remarks 
        if (in == null) return null;
        UserEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setUserName(HzhrTypeUtil.string2string(in.getUserName()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setPhone(HzhrTypeUtil.string2long(in.getPhone()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setId(HzhrTypeUtil.string2integer(in.getGender()));
        result.setCreateTime(HzhrTypeUtil.long2date(in.getCreateTime()));
        return result;
    }
    public List<UserEntity> user_SysInfoModelList2entityList(List<User_SysInfoModel> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (User_SysInfoModel item : in) {
            result.add(user_SysInfoModel2entity(item));
        }
        return result;
    }
    public User_SysInfoModel entity2user_SysInfoModel(UserEntity in) {
        //未转换字段: deptName genderDes changeCount firstRoleName firstRoleId 
        if (in == null) return null;
        User_SysInfoModel result = new User_SysInfoModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setGender(HzhrTypeUtil.object2string(in.getId()));
        result.setUserName(HzhrTypeUtil.string2string(in.getUserName()));
        result.setPhone(HzhrTypeUtil.object2string(in.getPhone()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setCreateTime(HzhrTypeUtil.date2long(in.getCreateTime()));
        return result;
    }
    public List<User_SysInfoModel> entityList2user_SysInfoModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<User_SysInfoModel> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2user_SysInfoModel(item));
        }
        return result;
    }
    public User_SysInfoModel ext2user_SysInfoModel(UserEntityExt in) {
        //未转换字段: deptName genderDes changeCount firstRoleName firstRoleId 
        if (in == null) return null;
        User_SysInfoModel result = new User_SysInfoModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setGender(HzhrTypeUtil.object2string(in.getId()));
        result.setUserName(HzhrTypeUtil.string2string(in.getUserName()));
        result.setPhone(HzhrTypeUtil.object2string(in.getPhone()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setCreateTime(HzhrTypeUtil.date2long(in.getCreateTime()));
        return result;
    }
    public List<User_SysInfoModel> extList2user_SysInfoModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<User_SysInfoModel> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2user_SysInfoModel(item));
        }
        return result;
    }
    public User_SysInfoGetModel extList2user_SysInfoGetModel(List<UserEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<User_SysInfoModel> modelList = extList2user_SysInfoModelList(extList);
        if (modelList == null) {
            User_SysInfoGetModel result = new User_SysInfoGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));
         Boolean _show_info = query.get("_show_info") != null ? Boolean.parseBoolean(query.get("_show_info").toString()) : false;

        if (!_show_info) {
            for (User_SysInfoModel model : modelList) {
                model.setUserName(null);
                model.setRealName(null);
                model.setPhone(null);
                model.setFirstRoleId(null);
                model.setFirstRoleName(null);
                model.setDeptId(null);
                model.setDeptName(null);
                model.setStaffNo(null);
                model.setGender(null);
                model.setGenderDes(null);
                model.setCreateTime(null);
            }
        }

        User_SysInfoGetModel result = new User_SysInfoGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public User_SysInfoGetModel entity2user_SysInfoGetModel(UserEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<UserEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2user_SysInfoGetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, UserEntityExt.class));
        return extList2user_SysInfoGetModel(extList, total, changeCount, query);
     }
    public UserEntity user_SysInfoPutModel2entity(User_SysInfoPutModel in) {
        //未转换字段: createUserId updateUserId isValid updateTime userName isNewUser type userCode currentToken password companyId loginTime resourceCode createTime idcard loginIp outId id state addr email remarks 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setPhone(HzhrTypeUtil.string2long(in.getPhone()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        return result;
    }
    public UserEntity user_SysInfoPutModel2entity(User_SysInfoPutModel in, UserEntity ori) {
        //未转换字段: createUserId updateUserId isValid updateTime userName isNewUser type userCode currentToken password companyId loginTime resourceCode createTime idcard loginIp outId id state addr email remarks 
        if (in == null) return null;
        UserEntity result = ori;

        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setPhone(HzhrTypeUtil.string2long(in.getPhone()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        return result;
    }
    public List<UserEntity> user_SysInfoPutModelList2entityList(List<User_SysInfoPutModel> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (User_SysInfoPutModel item : in) {
            result.add(user_SysInfoPutModel2entity(item));
        }
        return result;
    }
    public User_SysInfoPutModel entity2user_SysInfoPutModel(UserEntity in) {
        //未转换字段: firstRoleId 
        if (in == null) return null;
        User_SysInfoPutModel result = new User_SysInfoPutModel();

        result.setPhone(HzhrTypeUtil.object2string(in.getPhone()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        return result;
    }
    public List<User_SysInfoPutModel> entityList2user_SysInfoPutModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<User_SysInfoPutModel> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2user_SysInfoPutModel(item));
        }
        return result;
    }
    public User_SysInfoPutModel ext2user_SysInfoPutModel(UserEntityExt in) {
        //未转换字段: firstRoleId 
        if (in == null) return null;
        User_SysInfoPutModel result = new User_SysInfoPutModel();

        result.setPhone(HzhrTypeUtil.object2string(in.getPhone()));
        result.setRealName(HzhrTypeUtil.string2string(in.getRealName()));
        result.setGender(HzhrTypeUtil.string2string(in.getGender()));
        result.setStaffNo(HzhrTypeUtil.string2string(in.getStaffNo()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        return result;
    }
    public List<User_SysInfoPutModel> extList2user_SysInfoPutModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<User_SysInfoPutModel> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2user_SysInfoPutModel(item));
        }
        return result;
    }
    public UserEntity user_TypeModel2entity(User_TypeModel in) {
        //未转换字段: createUserId gender userCode password loginTime resourceCode loginIp outId state addr email staffNo updateUserId isValid deptId updateTime userName isNewUser currentToken realName companyId phone createTime idcard remarks 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setType(HzhrTypeUtil.string2string(in.getType()));
        return result;
    }
    public UserEntity user_TypeModel2entity(User_TypeModel in, UserEntity ori) {
        //未转换字段: createUserId gender userCode password loginTime resourceCode loginIp outId state addr email staffNo updateUserId isValid deptId updateTime userName isNewUser currentToken realName companyId phone createTime idcard remarks 
        if (in == null) return null;
        UserEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setType(HzhrTypeUtil.string2string(in.getType()));
        return result;
    }
    public List<UserEntity> user_TypeModelList2entityList(List<User_TypeModel> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (User_TypeModel item : in) {
            result.add(user_TypeModel2entity(item));
        }
        return result;
    }
    public User_TypeModel entity2user_TypeModel(UserEntity in) {
        //未转换字段: 
        if (in == null) return null;
        User_TypeModel result = new User_TypeModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setType(HzhrTypeUtil.string2string(in.getType()));
        return result;
    }
    public List<User_TypeModel> entityList2user_TypeModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<User_TypeModel> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2user_TypeModel(item));
        }
        return result;
    }
    public User_TypeModel ext2user_TypeModel(UserEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        User_TypeModel result = new User_TypeModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setType(HzhrTypeUtil.string2string(in.getType()));
        return result;
    }
    public List<User_TypeModel> extList2user_TypeModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<User_TypeModel> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2user_TypeModel(item));
        }
        return result;
    }
    public User_TypeGetModel extList2user_TypeGetModel(List<UserEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<User_TypeModel> modelList = extList2user_TypeModelList(extList);
        if (modelList == null) {
            User_TypeGetModel result = new User_TypeGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));


        User_TypeGetModel result = new User_TypeGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public User_TypeGetModel entity2user_TypeGetModel(UserEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<UserEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2user_TypeGetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, UserEntityExt.class));
        return extList2user_TypeGetModel(extList, total, changeCount, query);
     }
    public UserEntity user_TypePutModel2entity(User_TypePutModel in) {
        //未转换字段: createUserId gender userCode password loginTime resourceCode loginIp outId id state addr email staffNo updateUserId isValid deptId updateTime userName isNewUser currentToken realName companyId phone createTime idcard remarks 
        if (in == null) return null;
        UserEntity result = new UserEntity();

        result.setType(HzhrTypeUtil.string2string(in.getType()));
        return result;
    }
    public UserEntity user_TypePutModel2entity(User_TypePutModel in, UserEntity ori) {
        //未转换字段: createUserId gender userCode password loginTime resourceCode loginIp outId id state addr email staffNo updateUserId isValid deptId updateTime userName isNewUser currentToken realName companyId phone createTime idcard remarks 
        if (in == null) return null;
        UserEntity result = ori;

        result.setType(HzhrTypeUtil.string2string(in.getType()));
        return result;
    }
    public List<UserEntity> user_TypePutModelList2entityList(List<User_TypePutModel> in) {
        if (in == null) return null;
        List<UserEntity> result = new ArrayList<>();
        for (User_TypePutModel item : in) {
            result.add(user_TypePutModel2entity(item));
        }
        return result;
    }
    public User_TypePutModel entity2user_TypePutModel(UserEntity in) {
        //未转换字段: 
        if (in == null) return null;
        User_TypePutModel result = new User_TypePutModel();

        result.setType(HzhrTypeUtil.string2string(in.getType()));
        return result;
    }
    public List<User_TypePutModel> entityList2user_TypePutModelList(List<UserEntity> in) {
        if (in == null) return null;
        List<User_TypePutModel> result = new ArrayList<>();
        for (UserEntity item : in) {
            result.add(entity2user_TypePutModel(item));
        }
        return result;
    }
    public User_TypePutModel ext2user_TypePutModel(UserEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        User_TypePutModel result = new User_TypePutModel();

        result.setType(HzhrTypeUtil.string2string(in.getType()));
        return result;
    }
    public List<User_TypePutModel> extList2user_TypePutModelList(List<UserEntityExt> in) {
        if (in == null) return null;
        List<User_TypePutModel> result = new ArrayList<>();
        for (UserEntityExt item : in) {
            result.add(ext2user_TypePutModel(item));
        }
        return result;
    }
    public UserCustomQueryModel userService_query2queryModel(Map<String, Object> query) {
        UserCustomQueryModel queryModel = new UserCustomQueryModel();

        Integer _equal_id = HzhrTypeUtil.object2integer(query.get("_equal_id"));
        if (_equal_id != null) {
            queryModel.setEqual_id(_equal_id);
         }

        Integer _equal_companyId = HzhrTypeUtil.object2integer(query.get("_equal_companyId"));
        if (_equal_companyId != null) {
            queryModel.setEqual_companyId(_equal_companyId);
         }

        String _equal_userName = HzhrTypeUtil.object2string(query.get("_equal_userName"));
        if (_equal_userName != null) {
            queryModel.setEqual_userName(_equal_userName);
         }

        String _like_resourceCode = HzhrTypeUtil.object2string(query.get("_like_resourceCode"));
        if (_like_resourceCode != null) {
            queryModel.setLike_resourceCode(_like_resourceCode);
         }

        Integer _existRoleId = HzhrTypeUtil.object2integer(query.get("_existRoleId"));
        if (_existRoleId != null) {
            queryModel.setEqual_roleExtList_id(_existRoleId);
         }

        String _equal_realName = HzhrTypeUtil.object2string(query.get("_equal_realName"));
        if (_equal_realName != null) {
            queryModel.setEqual_realName(_equal_realName);
         }

        String _equal_phone = HzhrTypeUtil.object2string(query.get("_equal_phone"));
        if (_equal_phone != null) {
            queryModel.setEqual_phone(_equal_phone);
         }

        String _equal_staffNo = HzhrTypeUtil.object2string(query.get("_equal_staffNo"));
        if (_equal_staffNo != null) {
            queryModel.setEqual_staffNo(_equal_staffNo);
         }

        Date _greaterthanorequal_createTime = HzhrTypeUtil.object2date(query.get("_greaterthanorequal_createTime"));
        if (_greaterthanorequal_createTime != null) {
            queryModel.setGreaterthanorequal_createTime(_greaterthanorequal_createTime);
         }

        Date _lessthan_createTime = HzhrTypeUtil.object2date(query.get("_lessthan_createTime"));
        if (_lessthan_createTime != null) {
            queryModel.setLessthan_createTime(_lessthan_createTime);
         }

        Boolean _show_role = HzhrTypeUtil.object2boolean(query.get("_show_role"));
        if (_show_role != null && _show_role) {
            queryModel.setExt_roleExtList(true);
            queryModel.setShow18(true);
            queryModel.setExt_roleExtList(true);
            queryModel.setShow18(true);
            queryModel.setExt_roleExtList(true);
            queryModel.setShow18(true);
        }
        Boolean _show_info = HzhrTypeUtil.object2boolean(query.get("_show_info"));
        if (_show_info != null && _show_info) {
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_genderExt(true);
            queryModel.setShow19(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
        }
        Boolean _show_company = HzhrTypeUtil.object2boolean(query.get("_show_company"));
        if (_show_company != null && _show_company) {
            queryModel.setExt_companyExt(true);
            queryModel.setShow4(true);
            queryModel.setExt_companyExt(true);
            queryModel.setShow4(true);
        }
        Boolean _show_dept = HzhrTypeUtil.object2boolean(query.get("_show_dept"));
        if (_show_dept != null && _show_dept) {
            queryModel.setExt_deptExt(true);
            queryModel.setShow1(true);
            queryModel.setExt_deptExt(true);
            queryModel.setShow1(true);
        }

        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }
    public UserCustomQueryModel user_BasicInfoService_query2queryModel(Map<String, Object> query) {
        UserCustomQueryModel queryModel = new UserCustomQueryModel();

        Boolean _show_info = HzhrTypeUtil.object2boolean(query.get("_show_info"));
        if (_show_info != null && _show_info) {
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
        }

        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }
    public UserCustomQueryModel user_Info1Service_query2queryModel(Map<String, Object> query) {
        UserCustomQueryModel queryModel = new UserCustomQueryModel();

        queryModel.setShow(true);
        queryModel.setShow(true);
        queryModel.setShow(true);

        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }
    public UserCustomQueryModel user_MoreCompleteRegistInfoService_query2queryModel(Map<String, Object> query) {
        UserCustomQueryModel queryModel = new UserCustomQueryModel();

        Boolean _show_info = HzhrTypeUtil.object2boolean(query.get("_show_info"));
        if (_show_info != null && _show_info) {
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
        }

        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }
    public UserCustomQueryModel user_PasswordService_query2queryModel(Map<String, Object> query) {
        UserCustomQueryModel queryModel = new UserCustomQueryModel();

        Integer _equal_id = HzhrTypeUtil.object2integer(query.get("_equal_id"));
        if (_equal_id != null) {
            queryModel.setEqual_id(_equal_id);
         }

        queryModel.setShow(true);

        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }
    public UserCustomQueryModel user_RegistInfoService_query2queryModel(Map<String, Object> query) {
        UserCustomQueryModel queryModel = new UserCustomQueryModel();

        Boolean _show_info = HzhrTypeUtil.object2boolean(query.get("_show_info"));
        if (_show_info != null && _show_info) {
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
        }

        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }
    public UserCustomQueryModel user_SysInfoService_query2queryModel(Map<String, Object> query) {
        UserCustomQueryModel queryModel = new UserCustomQueryModel();

        Integer _equal_id = HzhrTypeUtil.object2integer(query.get("_equal_id"));
        if (_equal_id != null) {
            queryModel.setEqual_id(_equal_id);
         }

        Boolean _show_info = HzhrTypeUtil.object2boolean(query.get("_show_info"));
        if (_show_info != null && _show_info) {
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_roleExtList(true);
            queryModel.setShow18(true);
            queryModel.setExt_roleExtList(true);
            queryModel.setShow18(true);
            queryModel.setShow(true);
            queryModel.setExt_deptExt(true);
            queryModel.setShow1(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_genderExt(true);
            queryModel.setShow19(true);
            queryModel.setShow(true);
        }

        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }

}

